﻿//=====================================================
// Copyright © 2017-2018 xuxuzhaozhao
// All rights reserved
// GUID: 1b653e80-c368-4aed-a1e8-55839fbc000f
// CLR版本: 4.0.30319.42000
// 机器名称: WIN10-20170502F
// 命名空间名称: xuxuzhaozhao.Blog.Domain
// 文件名: XuUser
// 当前系统时间: 2017/11/6 16:47:50
// 当前登录用户名: xuxuzhaozhao
//======================================================

using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace xuxuzhaozhao.Blog.Domain
{
    [Table("XuUser")]
    public class XuUser
    {
        public int Id { get; set; }
        public AccountType AccountType { get; set; } = AccountType.Superadmin;
        public string UserName { get; set; }
        public string Password { get; set; }
        public string RealName { get; set; }
        public string Phone { get; set; }
        public int LoginCount { get; set; }
        public DateTime RegisterTime { get; set; } = DateTime.Now;
        public DateTime? LastLoginTime { get; set; }
    }

    public enum AccountType
    {
        Normal,
        Superadmin
    }
}
